package com.sharding.web;

import com.sharding.service.TestShardingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: LCG
 * @date: 2022-11-09 16:14:37
 * @description:
 **/
@RestController
public class TestShardingWeb {

    @Autowired
    private TestShardingService testShardingService;

    @RequestMapping("get123")
    public Object getUserList(){
        return testShardingService.insertToShardingDataBase();
    }

    @RequestMapping("get121")
    public Object userInsert(){
        testShardingService.insertUserDto();
        return "ok";
    }

}
